package com.hxd.otc.module.my.bean;

import com.hxd.otc.common.enums.AdvertFeeEnum;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;

public class AdvertCoinTypeBean implements Serializable {
    //共有的
    private String id;
    private String symbol; //币种符号
    private String pointPrice;//价格的小数位
    private String pointVolume;
    private ArrayList<AdvertCoinPriceBean> list;
    private String supportCurrencyCode; //支持法币

    //new

    public String maxUpPercent;
    public String maxDownPercent;
    public String flexibleSwitch;
    public BigDecimal buyMinPrice;
    public BigDecimal buyMaxPrice;
    public BigDecimal sellMinPrice;
    public BigDecimal sellMaxPrice;
    public String sortValue;

    //old
    private String coinId; //币种ID
    private String maxVolume; //买卖最大数量
    private String minVolume;  //买卖最小数量

    //    private int feeType;//手续费类型：

    private ArrayList<String> upportCurrencyArr;  //支持法币数组 本地

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCoinId() {
        return coinId;
    }

    public void setCoinId(String coinId) {
        this.coinId = coinId;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }


    public String getMaxVolume() {
        return maxVolume;
    }

    public void setMaxVolume(String maxVolume) {
        this.maxVolume = maxVolume;
    }



    public String getMinVolume() {
        return minVolume;
    }

    public void setMinVolume(String minVolume) {
        this.minVolume = minVolume;
    }

    public String getSupportCurrencyCode() {
        return supportCurrencyCode;
    }

    public void setSupportCurrencyCode(String supportCurrencyCode) {
        this.supportCurrencyCode = supportCurrencyCode;
    }

    public ArrayList<String> getUpportCurrencyArr() {
        if (upportCurrencyArr == null) {
            upportCurrencyArr = new ArrayList<>();
        }
        upportCurrencyArr.clear();
        upportCurrencyArr.addAll(Arrays.asList(supportCurrencyCode.split(",")));
        return upportCurrencyArr;
    }


    public String getPointPrice() {
        return pointPrice;
    }

    public void setPointPrice(String pointPrice) {
        this.pointPrice = pointPrice;
    }

    public String getPointVolume() {
        return pointVolume;
    }

    public void setPointVolume(String pointVolume) {
        this.pointVolume = pointVolume;
    }



    public ArrayList<AdvertCoinPriceBean> getList() {
        return list;
    }

    public void setList(ArrayList<AdvertCoinPriceBean> list) {
        this.list = list;
    }


}
